package vip.hamlin.dnspod.bean;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

/**
 * DNSPod 获取记录列表的参数
 * Created by SunShao on 2016/6/1.
 */
@SuppressWarnings("unused")
@Configuration
@PropertySource("classpath:dnspod_record_list_config.properties")
public class DNSPodRecordListRequest extends BaseBean {
    @Value("${recordList}")
    private String recordList;
    @Value("${domain}")
    private String domain;
    @Value("${domain_id}")
    private String domainId;
    @Value("${offset}")
    private String offset;
    @Value("${length}")
    private String length;
    @Value("${sub_domain}")
    private String subDomain;
    @Value("${keyword}")
    private String keyword;


    public String getRecordList() {
        return recordList;
    }

    public void setRecordList(String recordList) {
        this.recordList = recordList;
    }

    public String getDomain() {
        return domain;
    }

    public void setDomain(String domain) {
        this.domain = domain;
    }

    public String getDomainId() {
        return domainId;
    }

    public void setDomainId(String domainId) {
        this.domainId = domainId;
    }

    public String getOffset() {
        return offset;
    }

    public void setOffset(String offset) {
        this.offset = offset;
    }

    public String getLength() {
        return length;
    }

    public void setLength(String length) {
        this.length = length;
    }

    public String getSubDomain() {
        return subDomain;
    }

    public void setSubDomain(String subDomain) {
        this.subDomain = subDomain;
    }

    public String getKeyword() {
        return keyword;
    }

    public void setKeyword(String keyword) {
        this.keyword = keyword;
    }

    @Override
    public String toString() {
        return "domain=" + domain +
                "&domain_id=" + domainId +
                "&offset=" + offset +
                "&length=" + length +
                "&sub_domain=" + subDomain +
                "&keyword=" + keyword;
    }
}
